package com.librarydemo.demo.entity;

public class BuyRecord {
    private int cid;
    private int bid;
    private String bname;
    private double price;
    private int number;
    private String date;

    public BuyRecord() {
    }

    public BuyRecord(int cid, int bid, String bname, double price, int number, String date) {
        this.cid = cid;
        this.bid = bid;
        this.bname = bname;
        this.price = price;
        this.number = number;
        this.date = date;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "BuyRecord{" +
                "cid=" + cid +
                ", bid=" + bid +
                ", bname='" + bname + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", date='" + date + '\'' +
                '}';
    }
}
